﻿@{
    ViewBag.Title = "编辑产品信息收集映射";
}
@using ZBJF.Warranty.Common.Common
@using ZBJF.Warranty.Common.Enums.InfoCollect
@using ZBJF.Warranty.Common.Enums.InsuranceProducts
@model ZBJF.Warranty.Model.InsuranceProductsInfoCollectItemMappings
@using (Html.BeginForm("SaveInsuranceProductsInfoCollectItemMapping", "InsuranceProducts", FormMethod.Post, new { id = "mvcForm", name = "mvcForm", @class = "form-horizontal", enctype = "multipart/form-data" }))
{
    @Html.HiddenFor(m => m.ID)
    @Html.HiddenFor(m => m.InsuranceProductID)
    <table class="table table-responsive table-bordered table-hover">
        <tr>
            <th>信息收集方（类别）：</th>
            <td colspan="3">
                @(ZBJF.Warranty.Common.Common.EnumHelper.Instance.GetDescription(typeof(CollectWithType), Model.CollectTypeCollectItemMappings.CollectWithType))
            </td>
        </tr>
        <tr>
            <th>信息收集项目类型：</th>
            <td>@Model.CollectTypeCollectItemMappings.InsuranceProductsInfoCollectItem.InsuranceProductsInfoCollectCategory.InfoCollectCategoryName</td>
            <th>信息收集项目名称：</th>
            <td>
                @Model.CollectTypeCollectItemMappings.InsuranceProductsInfoCollectItem.InfoCollectItemName
            </td>
        </tr>
        <tr>
            <th>是否必选：</th>
            <td>@Html.CheckBoxFor(o => o.IsMust)</td>
            <th>可上传图片张数：</th>
            <td>@Html.TextBoxFor(o => o.CanUploadPicCount, new { validate = "{required:true,messages:{required:'请输入可上传图片张数'}}", @class = "input-medium" })</td>
        </tr>
    </table>
    <div class="form-actions" style="letter-spacing: 50px">
        <input id="btnSave" class="btn btn-primary Edit-R" type="submit" value="保存">
        <input id="btnAuditColse" class="btn btn-primary Edit-R" type="button" value="取消" onclick="parent.layer.closeAll();">
    </div>
}
<script type="text/javascript">
    $(function() {
        $("#btnSave").click(function () {
            try {
                parent.reloadAfterTime(666);
            } catch (e) {

            }
            return true;
        });
    })
</script>